﻿@model blacksoftFINAL.Models.Usuario
@{
    ViewBag.Title = "index";
}

@if(null != TempData["alertMessage"])
   {
<script type="text/javascript">
       alert("@TempData["alertMessage"]");
</script>
   }

<h2>Ingresar al Intranet</h2>

@Html.AntiForgeryToken()
@using (Html.BeginForm())
{
<div class="form-horizontal">
    <h4>Identifiquese</h4>
    <hr />
    @Html.ValidationSummary(true)
    <div class="form-group">
        @Html.LabelFor(model => model.Nombre, new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>
    </div>
    .
    <div class="form-group">
        @Html.LabelFor(model => model.Contraseña, new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Contraseña)
            @Html.ValidationMessageFor(model => model.Contraseña)
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" value="Ingresar" class="btn btn-default"/>
        </div>
    </div>
</div>
}
